<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/static/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
    <meta name="author" content="jack"/>
    <meta name="keywords" content="网页描述"/>
    <meta name="description" content="网页关键字"/>
    <title>我的珠宝店</title>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/global.css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/layout.css"/>
    <script type="text/javascript" src="${ctx}/static/js/jquery.min.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/global.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/toCommit.js"></script>
    <title>Insert title here</title>
    <%--<script type="application/javascript">
        $(document).ready(function(){

        });
        function saveAddress(){
            var name = $("#shopAddress_name").val();
            var cell = $("#shopAddress_cell").val();
            var cellphone = $("#shopAddress_cellphone").val();
            var address = $("#shopAddress_address").val();
            var remark = $("#shopAddress_remark").val();
            $.post("${ctx}/address/save",{filter_name:name,filter_cell:cell,
                        filter_cellphone:cellphone,filter_address:address,filter_remark:remark},
                    function (data) {
                        alert(data);
                        location.reload();
                    });
        }
    </script>--%>
</head>
<body>
<div id="wrap" style="position:relative;">
    <div class="head">
        <div class="top">
            <h1><a href="${ctx}/index/toIndex/"><img src="${ctx}/static/images/logo_head.jpg" alt=""/></a></h1>

            <div class="nav"><a href="${ctx}/index/toIndex/"><img src="${ctx}/static/images/top_xtb.jpg" alt=""/>　挑选钻石/戒托</a>　|　<a href="${ctx}/account/user/"><img src="${ctx}/static/images/head_xtb1.jpg" alt=""/>　我的帐户</a>　|　
                <a href="${ctx}/ShopCart/"><img src="${ctx}/static/images/head_xtb2.jpg" alt=""/>　购物车 <b id="shopCartCount">0</b> 件</a>　|　
                <a href="${ctx}/logout"><img src="${ctx}/static/images/head_xtb3.jpg" alt=""/>　退出登录</a></div>
            <div class="del_float"></div>
        </div>
    </div>
    <div class="zuan_list">
        <h2>订单确认</h2>

        <div class="del_float"></div>
        <div class="zhuan_list_table sure">
            <h4>订单号：<b>${orderNum}</b></h4>
            <c:if test="${jewels.size() != 0}">
                <h4><img src="${ctx}/static/images/sure_h3-1.jpg" alt=""/></h4>
                <table cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <th width="20">&nbsp;</th>
                        <th width="105">货号</th>
                        <th width="46">形状</th>
                        <th width="40">重量</th>
                        <th width="40">颜色</th>
                        <th width="49">净度</th>
                        <th width="41">切工</th>
                        <th width="42">抛光</th>
                        <th width="41">对称</th>
                        <th width="41">荧光</th>
                        <th width="43">证书</th>
                        <th width="88">证书号</th>
                        <th width="114">尺寸</th>
                        <th width="70">国际报价</th>
                        <th width="50">折扣</th>
                        <th width="80">人民币价格</th>
                        <th width="65">&nbsp;</th>
                    </tr>
                    <c:forEach items="${jewels}" var="jewel">
                        <tr>
                            <td width="20">&nbsp;</td>
                            <td width="105">${jewel.num}</td>
                            <td width="46">${jewel.shape}</td>
                            <td width="40">${jewel.weight}</td>
                            <td width="40">${jewel.color}</td>
                            <td width="49">${jewel.neatness}</td>
                            <td width="41">${jewel.cut}</td>
                            <td width="42">${jewel.buffing}</td>
                            <td width="41">${jewel.symmetry}</td>
                            <td width="41">${jewel.fluorescence}</td>
                            <td width="43">${jewel.card}</td>
                            <td width="88">${jewel.cardId}</td>
                            <td width="114">${jewel.size}</td>
                            <td width="70">${jewel.internationalPrice}</td>
                            <td width="50"><fmt:formatNumber value="${jewel.secondDiscount}" pattern="0.00"
                                                             type="number"/></td>
                            <td width="80"><fmt:formatNumber value="${jewel.secondPrice}" pattern="0"
                                                             type="number"/></td>
                            <td width="65">&nbsp;</td>
                        </tr>
                    </c:forEach>
                </table>
            </c:if>
            <c:if test="${rings.size() != 0}">
                <h4><img src="${ctx}/static/images/sure_h3-2.jpg" alt=""/></h4>
                <table cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <th width="25">&nbsp;</th>
                        <th width="80">款号</th>
                        <th width="150">可镶主钻重量</th>
                        <th width="150">可镶主钻形状</th>
                        <th width="150">金重>=</th>
                        <th width="100">材质</th>
                        <th width="130">副钻重量>=</th>
                        <th width="100">指圈</th>
                        <th width="130">人民币价格</th>
                    </tr>
                    <c:forEach items="${rings}" var="ring">
                        <tr>
                            <td width="25">&nbsp;</td>
                            <td width="80">${ring.no}</td>
                            <td width="150">${ring.mainBeginWeigh}~${ring.mainEndWeigh}</td>
                            <td width="150">${ring.mainShape}</td>
                            <td width="150">${ring.goldWeight}</td>
                            <td width="100">${ring.quality}</td>
                            <td width="130">${ring.minorWeigh}CT</td>
                            <td width="100">${ring.sizeBegin}-${ring.sizeEnd}</td>
                            <td width="130">
                                <c:choose>
                                    <c:when test="${cUser.type==2}">
                                        ${ring.secondPrice}
                                    </c:when>
                                    <c:otherwise>
                                        ${ring.price}
                                    </c:otherwise>
                                </c:choose>
                            </td>
                        </tr>
                    </c:forEach>

                </table>
            </c:if>
           <div class="infor">共<b><fmt:formatNumber value="${count}" pattern="0" type="number"/></b>件商品　|　
                合计<b><fmt:formatNumber value="${sum}" pattern="0" type="number"/></b>元　

               <div class="search_btn" style="padding-bottom:0;">
                   <a href="${ctx}/account/user/" class="btn4">&nbsp;</a>
               </div>
            </div>
        </div>
        <span id="ding_btn1"><a href="${ctx}/ShopCart/">购物车 <b id="shopCartCount2">0</b> 件</a></span>
        <span id="ding_btn2"><img src="/xipujewelWeb/static/images/ding_btn1-02.png"/></span>
        <div class="footer">© 2014 My jewelry store</div>
    </div>
</body>
</html>